class ChatRecordModel {
  int? userid;
  String? usercode;
  String? nickname;
  String? mobile;
  String? avatar;
  int? gender;
  int? age;
  String? tag;
  String? icon;
  String? city;
  int? userState;
  int? openVideoStatus;
  int? openMsgStatus;
  int? vip;
  int? vipLevel;
  String? vipDesc;
  String? dateline;
  int? isAnchor;
  int? isOnline;
  int? isFollow;
  int? isFans;
  int? isBlack;
  String? remarkName;
  int? id;
  int? type;
  int? calltype;
  int? status;
  String? statusTxt;
  int? callTime;
  String? callAmount;
  String? callIncome;
  String? createTime;
  int? intimateDegree;
  Skill? skill;

  ChatRecordModel(
      {userid,
        usercode,
        nickname,
        mobile,
        avatar,
        gender,
        age,
        tag,
        icon,
        city,
        userState,
        openVideoStatus,
        openMsgStatus,
        vip,
        vipLevel,
        vipDesc,
        dateline,
        isAnchor,
        isOnline,
        isFollow,
        isFans,
        isBlack,
        remarkName,
        id,
        type,
        calltype,
        status,
        statusTxt,
        callTime,
        callAmount,
        callIncome,
        createTime,
        intimateDegree,
        skill});

  ChatRecordModel.fromJson(Map<String, dynamic> json) {
    userid = json['userid'];
    usercode = json['usercode'];
    nickname = json['nickname'];
    mobile = json['mobile'];
    avatar = json['avatar'];
    gender = json['gender'];
    age = json['age'];
    tag = json['tag'];
    icon = json['icon'];
    city = json['city'];
    userState = json['user_state'];
    openVideoStatus = json['open_video_status'];
    openMsgStatus = json['open_msg_status'];
    vip = json['vip'];
    vipLevel = json['vip_level'];
    vipDesc = json['vip_desc'];
    dateline = json['dateline'];
    isAnchor = json['is_anchor'];
    isOnline = json['is_online'];
    isFollow = json['is_follow'];
    isFans = json['is_fans'];
    isBlack = json['is_black'];
    remarkName = json['remark_name'];
    id = json['id'];
    type = json['type'];
    calltype = json['calltype'];
    status = json['status'];
    statusTxt = json['status_txt'];
    callTime = json['call_time'];
    callAmount = json['call_amount'];
    callIncome = json['call_income'];
    createTime = json['create_time'];
    intimateDegree = json['intimate_degree'];
    skill = json['skill'] != null ? Skill.fromJson(json['skill']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userid'] = userid;
    data['usercode'] = usercode;
    data['nickname'] = nickname;
    data['mobile'] = mobile;
    data['avatar'] = avatar;
    data['gender'] = gender;
    data['age'] = age;
    data['tag'] = tag;
    data['icon'] = icon;
    data['city'] = city;
    data['user_state'] = userState;
    data['open_video_status'] = openVideoStatus;
    data['open_msg_status'] = openMsgStatus;
    data['vip'] = vip;
    data['vip_level'] = vipLevel;
    data['vip_desc'] = vipDesc;
    data['dateline'] = dateline;
    data['is_anchor'] = isAnchor;
    data['is_online'] = isOnline;
    data['is_follow'] = isFollow;
    data['is_fans'] = isFans;
    data['is_black'] = isBlack;
    data['remark_name'] = remarkName;
    data['id'] = id;
    data['type'] = type;
    data['calltype'] = calltype;
    data['status'] = status;
    data['status_txt'] = statusTxt;
    data['call_time'] = callTime;
    data['call_amount'] = callAmount;
    data['call_income'] = callIncome;
    data['create_time'] = createTime;
    data['intimate_degree'] = intimateDegree;
    if (skill != null) {
      data['skill'] = skill!.toJson();
    }
    return data;
  }
}

class Skill {
  int? id;
  String? name;
  String? icon;
  int? status;

  Skill({id, name, icon, status});

  Skill.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    icon = json['icon'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['name'] = name;
    data['icon'] = icon;
    data['status'] = status;
    return data;
  }
}
